package com.xuanwei.search.entity.index;

import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.math.BigDecimal;

/**
 * @Author jiangyong
 * @Description TODO
 * @Date 2019/6/27 18:27
 **/
@Data
public class ProductSku {
    /**
     * 规格编号
     */
    @Field(type = FieldType.Keyword)
    private String attributeNo;

    /**
     * 规格ID
     */
    @Field(type = FieldType.Long)
    private Integer id;

    /**
     * 规格名称ID拼接
     */
    @Field(type = FieldType.Keyword)
    private String attributeIds;

    /**
     * 库存
     */
    @Field(type = FieldType.Integer)
    private Integer stock;

    /**
     * 现在价格
     */
    @Field(type = FieldType.Double)
    private BigDecimal price;

    /**
     * 市场价或原价
     */
    @Field(type = FieldType.Double)
    private BigDecimal marketPrice;

    /**
     * 销量
     */
    @Field(type = FieldType.Integer)
    private Integer saleNum;

}
